﻿@model HomeStayWebCP.Models.BusinessObject.NewObject
       
@{
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <title>AddNew</title>
    <script src="../../Plugin/ckeditor/ckeditor.js" type="text/javascript"></script>
    <script type="text/javascript"  src="../../Plugin/ckeditor/adapters/jquery.js"></script>
</head>
<body>
        
@using (Html.BeginForm("CreateNew","Admin",FormMethod.Post, new { enctype = "multipart/form-data"}))
{
    <div>
       
            

            <div class="editor-label">
                @Html.LabelFor(m => m.Title)
            </div> 
            
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Title)
                @Html.ValidationMessageFor(m => m.Title)
            </div>
            <div class="editor-label">
                @Html.LabelFor(m => m.Header)
            </div> 
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Header)
            </div>
            <div class="editor-label">
                @Html.LabelFor(m => m.Image)
            </div> 
             <input type="file" name="test" />
            <div class ="editor-label">
                 @Html.LabelFor(m => m.Content)
            </div>
            <div class="editor-label">
            
                @Html.TextAreaFor(m => m.Content, new { @id = "ckeContent" })
                               
                <script type="text/javascript"> CKEDITOR.replace("ckeContent");</script> 
            </div>

            <p>
                <input type="submit" value="Add" />
            </p>
        
    </div>
}
        
</body>
</html>
